package com.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;


/**
 * 演绎经历 表定义层。
 *
 * @author admin
 * @since 2024-06-26
 */
public class BCjyyjlTableDef extends TableDef {

    private static final long serialVersionUID = 1L;

    /**
     * 演绎经历
     */
    public static final BCjyyjlTableDef B_CJYYJL = new BCjyyjlTableDef();

    
    public final QueryColumn ID = new QueryColumn(this, "id");

    
    public final QueryColumn IMG = new QueryColumn(this, "img");

    
    public final QueryColumn TEXT = new QueryColumn(this, "text");

    
    public final QueryColumn TITLE = new QueryColumn(this, "title");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, TEXT, IMG, TITLE};

    public BCjyyjlTableDef() {
        super("", "b_cjyyjl");
    }

    private BCjyyjlTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public BCjyyjlTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new BCjyyjlTableDef("", "b_cjyyjl", alias));
    }

}
